package com.water.wfo.news.api;

import com.water.wfo.component.api.entity.response.BasicResponse;
import com.water.wfo.sys.pojo.entity.UserEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

/*
 * @Author Administrator
 * @Description 
 * @param null      
 * @Return 
 * @Date 2024/6/13 18:19
 *
 */
@RequestMapping("/news")
public interface NewsApi {
    /*
     * @Author junhuili
     * @Description test服务台启动
     * @param map
     * @Return com.water.wfo.component.api.entity.response.BasicResponse<java.lang.String>
     * @Date 2024/5/20 16:36
     *
     */
    @PostMapping("/queryNews")
    BasicResponse<String> queryNews(Map<String ,String> map);

    /*
     * @Author junhuili
     * @Description 查询所有用户
     * @param
     * @Return com.water.wfo.component.api.entity.response.BasicResponse<java.util.List<com.water.wfo.user.pojo.UserEntity>>
     * @Date 2024/5/20 16:36
     *
     */
    @PostMapping("/queryAll")
    BasicResponse<List<UserEntity>> queryAll(Map<String ,String> map);
}
